﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildWineAchieveInfo extends IMessageBase
    {
        public var exp:Number;
        public var drunkTimes:int;
        public var beDrunkTimes:int;
        public const _type:int = 5117;
        public static var _regist:SGuildWineAchieveInfo = new SGuildWineAchieveInfo(true);

        public function SGuildWineAchieveInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildWineAchieveInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeLong(this.exp);
            param1.writeInt(this.drunkTimes);
            param1.writeInt(this.beDrunkTimes);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.exp = param1.readLong();
            this.drunkTimes = param1.readInt();
            this.beDrunkTimes = param1.readInt();
            return;
        }// end function

    }
}
